007 basic displays
嘿欢迎回来。
Hey welcome back.
现在我们已经打开了屏幕,我们已经有了导航,我们已经完成了一些控制。
Now that we've got our screens up we've got navigation we've already gone through some controls.
现在让我们继续开始处理一些显示器。
Now let's go ahead and start working on some displays.
所以我们在这里有这个系统启动按钮,这很好,但现在我们希望能够查看系统是否正在运行。
So we've got this system start button here and that's good but now we want to be able to see if the system is running or not.
我要来这里反对,让我们选择指标多状态。
I'm going to come up here to object and let's go for an indicator multi state.
所以现在不仅仅是向您显示数字显示指示器。
So now rather than just showing you a numeric display indicator.
现在我想向您展示一些更酷的东西。
Now I'd like to show you something that's a little bit cooler.
让我们继续绘制它,然后双击它以显示属性。
Let's go ahead and draw that in and then double click on it to bring up the properties.
实际上,我认为我需要创建一些新标签,以便我可以进入标签进入我的文件夹,然后我可以创建更多标签。
And actually I think I'm going to need to create some new tags so I could go into tags go into my folder here and I could create more tags.
但你已经知道该怎么做了。
But you already know how to do that.
我将向您展示另一种将标签放入控件的方法。
And I'm going to show you another way to get tags into controls.
我只需双击它并进入控件并进入连接,然后我将单击标签,而不是进入我的 PRC 3 文件夹,我将直接进入其他人看到的三个绘制的文件夹带有罗马数字,表明它在我的 OPC 服务器上,因为这是我的 PC 程序的名称。
I'm just going to double click on this and go into controls and go into connection's then I'm going to click on tag and instead of going into my PRC 3 folder I'm going to go right into this other people see three drawn with Roman numerals which indicates it's on my OPC server because that's the name of my PC program.
我将进入离线标签,然后直接从那里取出一些东西。
I'm going to go into the off line tags and I'm just going to take something directly out of there.
我将让系统运行一下,然后点击“确定”。
I'm going to take the system running bit and I'm going to hit OK on that.
那么,让我们回到一般情况,我将设置它有多少个状态,这将有两个状态,因为那只会是 0 或 1 0 的背景颜色将为红色,我就这样,我的标题就停止了。
So then let's come back into general and I'm going to set up how many states this has this is going to have two states because that's only going to be a 0 or a 1 0 is going to have a background color of red and I'll call that stopped and my caption.
然后是状态 1。
And then for state 1.
让我们继续将其涂成绿色,然后我将在那里添加跑步作为我的标题。
Let's go ahead and paint that green and I will put running in for my caption there.
这样就很好了。
So that will be good.
这将为我们提供我们需要了解的关于这个东西的一般用途的信息。
That will give us what we need to know about what this thing is doing for general.
我真的不想再次提高边界,所以我只是将其设置为 9 并应用它。
I really don't want another raise to borders so I'm just going to set that 9 and apply it.
这有点弱,我的文字很难看清。
And that's kind of weak my text is kind of hard to see.
所以让我们改变它的颜色。
So let's just change the color of that.
我将把标题颜色更改为黑色,并将其加粗。
I'm going to change my caption color to black and make it bold on both of these.
所以这将是大胆的。
So that's going to be bold.
这将是黑色的,我将继续将它们都调整为 12 号字体。
That's going to be black and I will go ahead and bump those both up to size 12 font.
所以让我们点击“应用”,看起来更戏剧化一点。
So let's hit apply that looks a little bit more dramatic.
所以现在我有了一种可以实际显示数字的方法。
So now I've got a way that I can actually display numbers.
是的。
Yes.
但我也可以根据这些数字显示文本。
But I could also display text based on those numbers.
这更酷吧。
And that's even cooler right.
这样我就可以点击“确定”了。
So I can hit OK on that.
同样,我可以显示我在此处输入的相同数字,这样我也可以向您展示如何显示数字,但是如果您看到输入实际上也允许您显示,那就太酷了。
And likewise I can display the same number that I'm inputting here so I can show you how to display numbers as well but it's pretty cool if you look at it that the input actually allows you to display as well.
同样,如果我们进入这里查找数字字符串,我们也可以拉出一个普通的旧数字显示器,它不允许任何类型的输入,但它会显示相同类型的数字。
And likewise if we go in here and look for numeric string we can also just pull up a plain old numeric display which doesn't allow any kind of input but it will show the same kind of numbers.
因此,在这种情况下,我们继续采用不同的数字。
So in this case let's go ahead and take a different number.
这次我将采用我的电平传输或 1 缩放值,然后我将进入一般情况,让我们看看我们是否有一个提升。
And this time I'm going to take my level transmit or 1 scaled value and I will go into general and let's see we've got there is a raised in.
让我们继续将其设置为 9,我将把这一切设置为粗体并且大小为 12 位数字。
Let's go ahead and make it 9 and I'm going to make this all so bold and size 12 number of digits.
我将继续保留 5 位数字,并保留一位小数。
I'll go ahead and leave that at 5 digits and I will give it one decimal place.
因此,这将是小数点左侧的三位数字和小数点右侧的一位数字。
So that would be three digits left of the Decimal the decimal point itself and one digit to the right.
这是这五个人中的一个。
That's one of those five are going to come from.
所以让我们在这里点击“申请”。
So let's hit apply here.
好的。
OK.
然后我将在我的程序中添加一些东西来使其工作。
And then I'm just going to bump something in my program to make this thing work.
因此,让我们继续,当我拉起 PLCC 3 时,我将把它放在线上,将其置于运行模式。
So let's go ahead and and when I pull up PLCC three I'm going to put it on line put it into run mode.
让我们来这里进行审查,然后我将在此处切换此位,以便将我的所有设备置于自动模式。
Let's come down here to the review and then I'm going to toggle this bit right here just to put all my devices into auto mode.
现在,当我回到这里时,我实际上应该能够将系统置于运行模式,所以让我们单击测试应用程序。
So now when I come back here now I should actually be able to put the system into run mode so let's click on test application.
保存我们的更改。
Save our changes.
现在我知道我们并不是在寻找漂亮的 HDMI。
Now I know we're not looking at a beautiful HDMI.
我知道这不是任何人愿意花钱买的东西。
I know this isn't something anyone is going to pay money for.
所以请不要在这里给我歇斯底里的评分。
So please don't grade me on hysterics here.
我正在努力教您如何使用该软件以及如何创建显示。
I'm working on just teaching you how to use the software and how to create the displays.
我可以立即创造出比我在这里尝试做的更漂亮的东西。
I can create much prettier stuff than what I'm trying to do here right away.
让我们继续,你可以看到我们已经有了一个模式。
Let's go ahead and you can see we've got a mode to here.
这意味着我们已经将其置于自动模式,这就是当我们切换该位时会发生的情况。
That means that we have put that thing into auto mode that's what happens when we toggle that bit.
那挺好的。
That's good.
所以现在当我点击开始时,希望这次停止会变成跑步,然后我们会看到我们的油箱液位开始上升。
So now when I hit start hopefully this stop will turn into a running and then we'll see our tank level start to go up.
所以我要开始了。
So I'm going to hit start.
我们正在奔跑。
We're running.
几秒钟后,果然。
And then after a couple of seconds sure enough.
看那个。
Look at that.
泵已经开始转动,在这堂课上,你第一次真正看到某种生命从中华人民共和国出来并出现在屏幕上。
The pump has started to turn and for the first time in this class you're actually seeing something kind of life coming out of the PRC and showing up on a screen.
现在唯一的缺点是您还无法自己做到这一点。
Now the only downside is you're not yet able to do that yourself.
但别担心。
But don't worry.
从下一节开始,我们将只讨论您可以实际使用并与该程序实时通信的技术。
Starting in the next section we're going to only be talking about technologies that you can actually use and communicate live with this program.
因此,工厂谈话视图工作室将是我们在本课程中讨论的最后一件事,您无法在自己的虚拟机上自行练习。
So factory talk view studios going to be the last thing that we're discussing in this class that you can't practice all on your own on your own virtual machine.
所以你知道这让你接触到了工厂谈话的观点,我们给了你一些接触机会来了解更多。
So you know this is giving you some exposure to factory talk view we gave you some exposure to see more.
但是,是的,令人沮丧的是你无法真正练习这些事情,对此我深表歉意。
But yes it's frustrating you can't really practice these things and I do apologize for that.
如果你真的对此感到不舒服,你可以给岩棉人员写一封令人讨厌的信,然后再给自动化指挥人员写一封信,但请不要把气出在我身上。
If you're really been out of shape about it you can write a nasty letter to the rockwool people and write another one to the automation directs people but please don't take it out on me.
我将在接下来的几节中为您提供大量实际操作,因此不用担心您会得到公平的份额。
I'm going to give you lots of hands on in the next few sections so don't worry you're going to get your fair share.
但是嘿,此时我们已经有了导航。
But hey at this point we've got navigation.
那挺好的。
That's good.
您拥有可以控制的输入,还拥有可以从海洋中提取信息并将其显示给用户的显示。
You've got inputs you can control and you've also got displays that you can pull information out of the sea and show it to the user.
这就是我们想要达到的目标。
So that's it that's where we wanted to get to.
到本次讲座结束时。
By the end of this lecture.
那么我们就到此结束吧,下一篇见。
So we'll wrap it up and I'll see you in the next one.
干杯。
Cheers.